Component({
   /**
    * 组件的属性列表
    */
   properties: {
      //消息类型a:默认，b:有右箭头
      mtype: {
         type: String,
         value: ""
      },
      title: {
         type: String,
         value: "",
      },
      content: {
         type: String,
         value: ""
      },
      trigger: {
         type: String,
         value: "click"
      }
   },

   /**
    * 组件的初始数据
    */
   data: {
      opt: {

      }
   },

   /**
    * 组件的方法列表
    */
   methods: {
      show(opt) {
         let that = this;
         console.log(this.data.opt)

      },
      hide() {

      },

      compInClick() {
         console.log(this.data.trigger)
         if (this.data.trigger == 'click') {
            console.log('测试点2')
            this.clickEvents();
         }
      },

      clickEvents() {
         console.log('测试点1')
         this.triggerEvent("change");
      },
   }
})